package lib.self.util.res;

import android.content.Context;
import androidx.annotation.ColorRes;
import androidx.annotation.IntegerRes;
import androidx.core.content.ContextCompat;

import lib.self.AppEx;

/**
 * description: 资源加载管理器
 * 一定要继承AppEx才能使用这个工具类
 * author: Steven Xiao
 * date: 2017/5/11
 */
public class ResLoader {
    private static Context mContext = null;

    static {
        mContext = AppEx.getCt();
    }

    public static int getColor(@ColorRes int resId) {
        return ResUtil.getColor(mContext, resId);
    }

    public static Integer getInteger(@IntegerRes int resId) {
        return ResUtil.getInteger(mContext, resId);
    }
}
